<link href="__STATIC__/admin/css/tab.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/profiles.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/order.css" type="text/css" rel="stylesheet">

    <div id="right-content"> <!-- ngView:  -->
        <?php if(Q('get.op') == 'index'){ ?>
        <div id="content" style="padding: 0px;" class="rel">
            <div id="order_hd" class="rel">
                <ul id="tab_ul" class="c_txt abs">
                    <li class="tab_li pointer left rel for_gaq <?php if($type == '0'){ echo 'current_tab_li';}?> " data-type="0">
                        <a href="<?php echo U('Userlist/index',array('type'=>0)) ?>"> 全部 </a>
                    </li>
                    <li class="tab_li pointer left rel for_gaq <?php if($type == '1'){ echo 'current_tab_li';}?> " data-type="1">
                        <a href="<?php echo U('Userlist/index',array('type'=>1)) ?>"> 一级VIP </a>
                    </li>
                    <li class="tab_li pointer left rel for_gaq <?php if($type == '2'){ echo 'current_tab_li';}?> " data-type="2">
                        <a href="<?php echo U('Userlist/index',array('type'=>2)) ?>">二级VIP</a>
                    </li>
                </ul>
                <div id="order_search_wrap" class="wrap">
                    <form action="" method="get" name="order_search_form" id="order_search_form">
                        <input type="text" id="order_search_key" name="key" class="input block wrap input_y">
                    </form>
                </div>
            </div>

            <ul id="list_ul" class="wrap font14">
                <li id="list_hd" class="c_txt over_hidden">
                    <div class="list_o_div rel">
                        <div class="list_order_a list_hd_lineH">用户名</div>
                        <div class="list_order_b list_hd_lineH">用户账号</div>
                        <div class="list_order_a list_hd_lineH">用户手机号</div>
                        <div class="list_order_c list_hd_lineH">用户email</div>
                        <div class="list_order_d list_hd_lineH">用户等级</div>
                        <div class="list_order_e list_hd_lineH">操作</div>
                    </div>
                </li>
                <?php foreach($userlist as $v){ ?>
                <li class="list_li">
                    <div class="list_o_div rel">
                        <div class="list_order_a c_txt">
                            <br>
                            <p><?php echo $v['nickname']; ?></p>
                        </div>
                        <div class="list_order_b c_txt">
                            <br>
                            <p><?php echo $v['uname']; ?></p>
                        </div>
                        <div class="list_order_a c_txt">
                            <br>
                            <p><?php echo $v['mobile']; ?></p>
                        </div>
                        <div class="list_order_c">
                            <br>
                            <p><?php echo $v['email']; ?></p>
                        </div>
                        <div class="list_order_d c_txt">
                            <br>
                            <p>VIP<?php echo $v['uvip'] ?></p>
                        </div>
                        <div class="list_order_e c_txt">
                            <a href="<?php echo U('Userlist/index',array('op'=>'modify','uid'=>$v['uid'])); ?>" class="blu_txt list_o_btn">修改用户</a>
                            <a href="<?php echo U('Userlist/del',array('uid'=>$v['uid'])); ?>" class="blu_txt list_o_btn">删除用户</a>
                            <?php $qqurl = "tencent://message/?uin=".$v['qq']."&Site=&Menu=yes"; ?>
                            <a href="<?php echo $qqurl; ?>" class="blu_txt list_o_btn">联系用户</a>

                        </div>
                        <div class="clear"></div>
                    </div>
                </li>
                <?php } ?>
                <li class="list_li list_page">
                    <?php echo $page; ?>
                </li>
            </ul>
        </div>
        <?php }elseif(Q('get.op')=='modify'){ ?>
            <div class="profiles-container ng-scope" ng-view="">
                <div class="profiles-info ng-scope" id="profilesCheck">

                    <form action="<?php echo U('Userlist/modify',array('uid' => Q('get.uid'))) ?>" method="post">
                        <ul class="ng-scope">
                            <li>
                                <span>用户名：</span>
                                <input type="text" name="username" value="<?php echo $userinfo['uname']; ?>">
                            </li>
                            <li>
                                <span>昵称：</span>
                                <input type="text" name="nick" placeholder="请输入你想要的昵称" value="<?php echo $userinfo['nickname']; ?>">
                            </li>
                            <li>
                                <span>密码：</span>
                                <input type="password" name="adpass" placeholder="请输入你想要的密码" value="">
                            </li>
                            <li>
                                <span>手机号：</span>
                                <input type="text" name="mobile" placeholder="请输入你的手机号" value="<?php echo $userinfo['mobile']; ?>">
                            </li>
                            <li>
                                <span>电子邮箱：</span>
                                <input type="text" name="email" placeholder="请输入你的电子邮箱" value="<?php echo $userinfo['email']; ?>">
                            </li>
                            <li>
                                <span>QQ号：</span>
                                <input type="text" name="qq" placeholder="请输入你的QQ号" value="<?php echo $userinfo['qq']; ?>">
                            </li>
                            <li>
                                <span>VIP等级：</span>
                                <input type="text" name="uvip" placeholder="请输入你的QQ号" value="<?php echo $userinfo['uvip']; ?>">
                            </li>
                            <li>
                                <button class="hd-btn hd-btn-danger hd-btn-lg" name="saveinfo">保存修改</button>
                            </li>
                        </ul>
                    </form>

                </div>
            </div>
        <?php } ?>
    </div>
</div>
</body>
</html>